/* site is mainly using white theme. */
/* header is mainly using g100 */
/* mockup wanted white, not grey, text */
@import 'slick-carousel/slick/slick.css';
@import 'slick-carousel/slick/slick-theme.css';

body {
  /* This prevents the annoying MUI select box layout shift */
  overflow-y: auto !important;
}
.cds--header,
a.cds--header__menu-item {
  color: white;
}

.megacondensed {
  padding-left: 0;
  margin-left: 0;
}

/* defaults to 3rem, which isn't long sufficient for "elizabeth" */
.cds--header__action.username-header-text {
  width: 5rem;
}

.cds--header__action.spiff-environment-header-text {
  width: 5rem;
  color: #126d82;
}

.cds--header__action.unclickable-text:hover {
  background-color: #161616;
  cursor: default;
}

.cds--header__action.unclickable-text:focus {
  border: none;
  box-shadow: none;
  border-color: none;
}

.cds--loading__stroke {
  stroke: rgb(128, 128, 128);
}

/* make this a little less prominent so the actual human beings completing tasks stand out */
.system-user-log-entry {
  color: #b0b0b0;
  font-style: italic;
}

.selected-task-instance {
  color: #b0b0b0;
  font-style: italic;
}

.cds--white h1 {
  font-weight: 400;
  font-size: 28px;
  line-height: 36px;
  margin-bottom: 1rem;
  letter-spacing: 0.00938em;
}

.cds--white h2 {
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: #161616;
}

.cds--white h3 {
  font-weight: 400;
  font-size: 18px;
  line-height: 20px;
  color: #161616;
}

.tag-within-dl {
  color: black;
  margin-left: -3px;
}

.cds--btn.button-white-background {
  color: #393939;
  background: #ffffff;
  background-blend-mode: multiply;
  border: 1px solid #393939;
}

.cds--btn.button-white-background:hover {
  background: lightgrey;
}

.spiff-breadcrumb .MuiBreadcrumbs-li a:hover {
  color: #525252;
}

.spiff-breadcrumb .MuiBreadcrumbs-li a:visited {
  color: #525252;
}

.spiff-breadcrumb .MuiBreadcrumbs-li a:visited:hover {
  color: #525252;
}

.spiff-breadcrumb .MuiBreadcrumbs-li a {
  color: #525252;
}

.cds--btn--ghost {
  color: black;
}

.cds--btn--ghost:visited {
  color: black;
}

.cds--btn--ghost:hover {
  color: black;
}

.cds--btn--ghost:visited:hover {
  color: black;
}

/* match normal link colors */
.cds--btn--ghost.button-link {
  color: #0062fe;
  padding-left: 0;
}

.cds--btn--ghost.button-link:visited {
  color: #0062fe;
  padding-left: 0;
}

.cds--btn--ghost.button-link:hover {
  color: #0062fe;
  background-color: transparent;
  padding-left: 0;
}

.cds--btn--ghost.button-link:visited:hover {
  color: #0062fe;
  background-color: transparent;
  padding-left: 0;
}

/* make the colors black to make it easier to read */
.cds--btn--tertiary {
  color: black;
  border-color: black;
}

.cds--btn--tertiary:visited {
  color: black;
  border-color: black;
}

/* make the colors a little lighter black on hover
 * so they match our normal scheme better
 */
.cds--btn--tertiary:focus {
  color: #161616;
  border-color: #161616;
  background-color: #f4f4f4;
}

.cds--btn--tertiary:hover {
  color: #161616;
  border-color: #161616;
  background-color: #f4f4f4;
}

.cds--btn--tertiary:visited:hover {
  color: #161616;
  border-color: #161616;
  background-color: #f4f4f4;
}

.cds--btn--secondary {
  color: #161616;
  border-color: #efefef;
  background-color: #efefef;
}

.cds--btn--secondary:visited {
  color: #161616;
  border-color: #efefef;
  background-color: #efefef;
}

.cds--btn--secondary:focus {
  color: #161616;
  border-color: #efefef;
  background-color: #efefef;
}

.cds--btn--secondary:hover {
  color: #161616;
  border-color: #dddddd;
  background-color: #dddddd;
}

.cds--btn--secondary:visited:hover {
  color: #161616;
  border-color: #dddddd;
  background-color: #dddddd;
}

.cds--modal-footer .cds--btn--secondary {
  color: #ffffff;
  border-color: #393939;
  background-color: #393939;
}

.cds--modal-footer .cds--btn--secondary:visited {
  color: #ffffff;
  border-color: #393939;
  background-color: #393939;
}

.cds--modal-footer .cds--btn--secondary:focus {
  color: #ffffff;
  border-color: #393939;
  background-color: #393939;
}

.cds--modal-footer .cds--btn--secondary:hover {
  color: #ffffff;
  border-color: #474747;
  background-color: #474747;
}

.cds--modal-footer .cds--btn--secondary:visited:hover {
  color: #ffffff;
  border-color: #474747;
  background-color: #474747;
}

/* position the close button at the top-right corner of the modal header */
.cds--modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.cds--modal-close__icon {
  fill: #161616;
}

.cds--modal-footer .cds--btn--secondary {
  color: #161616;
  border-color: #e0e0e0;
  background-color: #e0e0e0;
}

.cds--modal-footer .cds--btn--secondary:hover {
  border-color: #c6c6c6;
  background-color: #c6c6c6;
  color: #161616;
}

.cds--header__global .cds--btn--primary.button-link {
  color: #f4f4f4;
  background-color: #393939;
  padding-left: 0;
}

.cds--header__global .cds--btn--primary {
  background-color: #161616;
}

.cds--btn--primary {
  background-color: #393939;
}

.cds--btn--primary:hover {
  background-color: #474747;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

.app-logo {
  height: 37px;
  width: 152px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.spiffworkflow-header-container {
  margin-bottom: 2rem;
}

.active-task-highlight:not(.djs-connection) .djs-visual > :nth-child(1) {
  fill: yellow !important;
  opacity: 0.6;
}

.completed-task-highlight:not(.djs-connection) .djs-visual > :nth-child(1) {
  fill: grey !important;
  opacity: 0.4;
}

.cancelled-task-highlight:not(.djs-connection) .djs-visual > :nth-child(1) {
  fill: blue !important;
  opacity: 0.2;
}

.errored-task-highlight:not(.djs-connection) .djs-visual > :nth-child(1) {
  fill: red !important;
  opacity: 0.2;
}

.accordion-item-label {
  vertical-align: middle;
}

.MuiBreadcrumbs-root.spiff-breadcrumb {
  margin-bottom: 2rem;
}

.process-description {
  margin-bottom: 2rem;
}

h1.with-icons {
  margin-top: 5px;
}

h3.with-icons {
  margin-top: 12px;
}

.with-icons {
  margin-top: 10px;
}

.readme-container {
  max-width: 640px;
}

dl {
  display: block;
  grid-template-columns: 35% 65%;
  font-size: 14px;
  line-height: 1.2rem;
  padding-top: 9px;
}

dl dt {
  display: inline-block;
  font-weight: 600;
  min-width: 6rem;
  color: #161616;
}

dl.metadata-display dt {
  width: 7rem;
  word-wrap: break-word;
}

dl dd {
  display: inline-block;
  padding-left: 1rem;
  color: #525252;
}

.smaller-text {
  font-size: 14px;
}

.diagram-editor-canvas {
  border: 1px solid #000000;
  height: 78vh;
  width: 90vw;
  margin: 0 auto;
}

.with-bottom-margin {
  margin-bottom: 1rem;
}

.user-profile-toggletip-content {
  background-color: #393939;
  color: #f4f4f4;
  margin-right: 8px;
  margin-top: -20px;
}

#user-profile-toggletip {
  margin-top: 8px;
  margin-right: 12px;
}

#user-profile-toggletip .cds--popover-content::before {
  content: none;
}

#user-profile-toggletip .cds--popover--bottom-right .cds--popover-content {
  bottom: 11px;
  right: -5px;
  border-radius: 5px;
  border: 3px solid black;
}

#user-profile-toggletip .cds--popover-caret {
  display: none;
}

.user-profile-toggletip-button:hover {
  background-color: #161616;
}

#user-profile-toggletip .cds--popover--tab-tip__button::after {
  content: none;
}

#user-profile-toggletip
  .cds--popover--tab-tip.cds--popover--open
  .cds--popover--tab-tip__button {
  background-color: #161616;
}

.with-top-margin {
  margin-top: 1rem;
}

.with-extra-top-margin {
  margin-top: 1.3rem;
}

.with-top-margin-for-label-next-to-text-input {
  margin-top: 2.3rem;
}

.with-tiny-top-margin {
  margin-top: 4px;
}

.with-top-margin-for-unit-test-name {
  margin-top: 11px;
}

.with-large-bottom-margin {
  margin-bottom: 3rem;
}

.with-tiny-bottom-margin {
  margin-bottom: 4px;
}

.with-half-rem-bottom-margin {
  margin-bottom: 0.5rem;
}

.with-half-rem-top-margin {
  margin-top: 0.5rem;
}

.diagram-viewer-canvas {
  border: 1px solid #000000;
  height: 70vh;
  width: 90vw;
  margin: auto;
}

.container .nav-tabs {
  margin-top: 1rem;
}

/* Markdown Tables */
.markdown table {
  color: #333;
  background: white;
  font-size: 12pt;
  border-collapse: collapse;
}

.markdown table thead th,
.markdown table tfoot th {
  color: #777;
  background: rgba(0, 0, 0, 0.1);
}

.markdown table th,
.markdown table td {
  padding: 0.5rem;
  border: 1px solid lightgrey;
}

/* Zebra Table Style */
.markdown tbody tr:nth-of-type(odd) {
  background: rgba(0, 0, 0, 0.05);
}

.form-instructions {
  margin-bottom: 10rem;
}

/* Json Web Form CSS Fix - Bootstrap now requries that each li have a "list-inline-item." Also have a PR
in on this with the react-jsonschema-form repo. This is just a patch fix to allow date inputs to layout a little more cleanly */
.list-inline > li {
  display: inline-block;
  padding-right: 5px;
  padding-left: 5px;
}

.cds--tile.tile-data-store {
  padding: 0px;
  margin: 12px 24px 12px 0px;
  width: 320px;
  height: 264px;
  background: #f4f4f4;
  order: 1;
  float: left;
}

.tile-data-store-content-container {
  width: 320px;
  height: 264px;
  padding: 1rem;
  position: relative;
}

.tile-data-store-display-name {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 20px;
  line-height: 28px;
  color: #161616;
  order: 0;
}

.cds--tile.tile-process-group {
  padding: 0px;
  margin: 12px 24px 12px 0px;
  width: 320px;
  height: 264px;
  background: #f4f4f4;
  order: 1;
  float: left;
}

.tile-process-group-content-container {
  width: 320px;
  height: 264px;
  padding: 1rem;
  position: relative;
}

.tile-process-group-display-name {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 20px;
  line-height: 28px;
  color: #161616;
  order: 0;
}

.tile-title-top {
  margin-bottom: 2rem;
  font-size: 20px;
  line-height: 28px;
  color: #161616;
  order: 0;
}

.tile-description {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.16px;
  color: #161616;
  order: 1;
}

.tile-process-group-children-count {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.16px;
  color: #161616;
  order: 1;
}

.tile-pin-bottom {
  position: absolute;
  bottom: 1rem;
}

.cds--tabs .cds--tabs__nav-link {
  max-width: 20rem;
}

/* carbon wants padding on all sides. our UI person wanted everything leaning against the left wall. */
.cds--tab-content {
  padding-left: 0;
  padding-right: 0;
}

.clear-left {
  clear: left;
}

td.actions-cell {
  width: 1rem;
}

.process-instance-list-table {
  margin: 0;
  padding: 0;
}

.process-instance-list-table button.button-tag {
  max-width: calc(100% - 1rem);
}

.process-instance-table-header {
  margin-bottom: 1rem;
}

.no-results-message {
  font-style: italic;
  font-size: 14px;
}

th.table-header-right-align .cds--data-table,
th.table-header-right-align .cds--table-header-label {
  text-align: right;
}

.data-table-description {
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.16px;
  color: #525252;
  margin-bottom: 1rem;
}

.filter-icon {
  text-align: right;
  padding-bottom: 10px;
  margin-right: 0px;
}

.cds--btn--ghost:not([disabled]).red-icon svg {
  fill: red;
}

.cds--btn--ghost:not([disabled]).green-icon svg {
  fill: #198038;
}

.cds--btn--ghost:not([disabled]) svg.red-icon {
  fill: red;
}

svg.green-icon {
  fill: #198038;
}

svg.notification-icon {
  margin-right: 1rem;
}

.failure-string {
  color: red;
}

.filter-tag {
  justify-content: left;
  width: 100%;
  height: 2rem;
}

.filter-tag > span {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.filter-tag > span > span {
  margin-right: 0.5px;
}

.cds--btn--ghost.cds--btn--sm.button-tag {
  padding-left: 0;
  padding-right: 0;
  padding-top: 0px;
  flex-grow: 1;
}

.cds--btn--ghost.cds--btn--sm.button-tag-icon {
  padding-left: 0;
  padding-right: 0;
  padding-top: 0px;
}

/* .no-wrap cds--label cds--label--inline cds--label--inline--md{ */
.no-wrap .cds--label--inline {
  word-break: normal;
}

.vertical-spacer-to-allow-combo-box-to-expand-in-modal {
  height: 250px;
}

.cds--btn.narrow-button {
  max-width: 10rem;
  min-width: 5rem;
  word-break: normal;
}

/* make this the same width as the carbon datePickerItem element
 * so the calendar icon stays on the input box.
 * CLASS: cds--date-picker-input__wrapper
*/
.cds--date-picker-container .cds--form__helper-text {
  width: 18rem;
}

/* lime green */
.tag-type-green:hover {
  background-color: #80ee90;
}

/* reset to initial modal css and avoid table specific css */
.modal-within-table-cell .cds--modal-container {
  text-align: left;
}

.modal-within-table-cell .cds--modal-container button {
  padding-left: 15px;
}

/* Errors and notifications  */
.error_info .error_title {
  display: inline-block;
  font-weight: lighter;
  width: 100px;
  text-align: right;
  margin-right: 10px;
}

.error_info_small {
  font-size: 0.8em;
  color: #550000;
}

.please-press-filter-button {
  margin-bottom: 1rem;
  font-weight: bold;
}

.user_instructions {
  filter: opacity(1);
  font-size: 1.2em;
  margin: 15px 0;
}

.user_instructions_0 {
  filter: opacity(1);
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.user_instructions_1 {
  filter: opacity(60%);
  font-size: 1.1rem;
}

.user_instructions_2 {
  filter: opacity(40%);
  font-size: 1rem;
}

.user_instructions_3 {
  filter: opacity(20%);
  font-size: 9rem;
}

.user_instructions_4 {
  filter: opacity(10%);
  font-size: 8rem;
}

.float-right {
  float: right;
}

.user-list {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.user-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
}

.user-circle-for-list {
  margin-right: 10px;
}

/* Randomize color assignment */
.user-circle:nth-child(1) {
  background-color: #8e8e8e;
}

.user-circle:nth-child(2) {
  background-color: #a57c63;
}

.user-circle:nth-child(3) {
  background-color: #8f7c7c;
}

.user-circle:nth-child(4) {
  background-color: #9a927f;
}

.user-circle:nth-child(5) {
  background-color: #5e5d5d;
}

.user-circle:nth-child(6) {
  background-color: #676767;
}

.user-circle:nth-child(7) {
  background-color: #6d7d6d;
}

.user-circle:nth-child(8) {
  background-color: #7a7171;
}

.user-circle:nth-child(9) {
  background-color: #837d63;
}

/* Default to first color if more than 10 users */
.user-circle:nth-child(n + 11) {
  background-color: #8e8e8e;
}

.version-info-column {
  width: 50%;
}

/* From bootstrap _reboot.scss, people got used to this when we
* had the bootstrap stylesheets, and they liked it.
* Otherwise, the hr in the user profile dropdown shows up as a dot
* and from markdown it's a little darker.
*/
hr {
  border: 0;
  border-top: 1px solid;
  color: inherit;
  margin: 1rem 0;
  opacity: 0.25;
}

.primary-file-text-suffix {
  font-style: italic;
}

.modal-dropdown {
  height: 20rem;
  width: auto;
}

.task-data-details-header {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.explanatory-message {
  font-style: italic;
  font-size: 14px;
}

.indented-content {
  margin-left: 1rem;
}

.hidden-form-for-autosave {
  display: none;
}

div.json-schema {
  display: flex;
  flex-direction: column;
}

.my-completed-forms-header {
  font-style: italic;
}

fieldset legend.header {
  margin-bottom: 16px;
}

fieldset fieldset fieldset legend.header {
  margin-bottom: 16px;
}

.fixed-width-container {
  margin: auto;
  justify-content: center;
  overflow: visible;
  /* border: 1px solid black; */
}

/*  media min-width 75 means: do the stuff in the block if the browser width is greater than 75 */
@media (min-width: 75rem) {
  .fixed-width-container {
    max-width: 75rem;
  }
}

.limited-width-for-readability,
p,
li,
blockquote,
hr {
  max-width: 640px;
}

.cds--white h1,
.cds--white h2,
.cds--white h3,
.cds--white h4,
.cds--white h5,
.cds--white h6 {
  max-width: 640px;
}

li.cds--accordion__item {
  max-width: 100%;
}

.process-model-search-combobox li {
  max-width: 100%;
}

div.markdown {
  padding: 15px 0 15px 0;
  overflow: visible;
}

div.markdown-collapsed {
  max-height: 200px;
  overflow: hidden;

  --mask: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 0,
      rgba(0, 0, 0, 1) 40%,
      rgba(0, 0, 0, 0) 95%,
      rgba(0, 0, 0, 0) 0
    )
    100% 50% / 100% 100% repeat-x;

  font: 2em/1.6em Arial;
  -webkit-mask: var(--mask);
  mask: var(--mask);
}

.cds--data-table-content {
  overflow-x: auto;
}

.MuiContainer-root .wmde-markdown {
  background-color: inherit;
  color: inherit;
}

.wmde-markdown table {
  width: fit-content;
  overflow: auto;
}

/* override carbon variable so we can left align accordions*/
.cds--accordion {
  --cds-layout-density-padding-inline-local: 0px;
}

.megacondensed-button .cds--btn {
  --cds-layout-density-padding-inline-local: 0px;
}

.wmde-markdown ol {
  list-style: decimal;
}

.wmde-markdown ul {
  list-style: disc;
}

div.cds--tag svg {
  vertical-align: middle;
  display: inline-block;
}

div.onboarding {
  margin-bottom: 2rem;
}

/* makde the completed user form modal more readable */
.completed-task-modal .cds--modal-container {
  background-color: #ffffff;
}

.completed-task-modal .cds--text-input:disabled,
.completed-task-modal .cds--text-area:disabled,
.completed-task-modal .cds--date-picker__input:disabled,
.completed-task-modal .cds--select-input:disabled,
.completed-task-modal .cds--select-input:hover:disabled {
  --cds-text-disabled: rgba(22, 22, 22, 0.5);
  background-color: var(--cds-field);
}

.completed-task-modal .cds--form__helper-text--disabled {
  --cds-text-disabled: rgba(22, 22, 22, 0.5);
}

.process-model-file-table {
  width: 100%;
  table-layout: fixed;
  overflow: hidden;
  white-space: nowrap;
}

.process-model-file-table-filename {
  overflow: hidden;
  text-overflow: ellipsis;
}

.login-button {
  height: 48px;
  width: 216px;
  padding-right: 0px;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

/*
 * on the mockup, it looked like about 142px above the heading.
 * we already have 32px, so adding the balance.
*/
.login-page-spacer {
  padding-top: 110px;
}

.shortcut-key {
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px 8px;
  margin: 4px;
  background-color: #f0f0f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  color: #333;
}

.shortcut-description {
  width: 50%;
  /* Adjust width as needed */
  float: left;
  /* Floats the description to the left */
  margin-top: 10px;
}

.shortcut-key-group {
  width: 50%;
  /* Adjust width as needed */
  float: right;
  /* Floats the keys to the right */
  text-align: right;
  /* Aligns text to the right within the container */
}

div.retrievalExpressionsForm {
  border: 1px solid #999;
  border-radius: 15px;
  background: #ddd;
  padding: 20px;
  margin: 20px;
}

.task-info-modal-accordion .cds--accordion__content {
  padding-right: 1rem;
}

.task-instance-modal-row-item {
  height: 48px;
  line-height: 48px;
}

/* Utility classes to create horizontally centered stacks (to align icons etc) */
.flex-align-horizontal-center {
  display: flex;
  align-items: center;
}

.flex-justify-end {
  display: flex;
  justify-content: flex-end;
}

.gray-text {
  color: gray;
}

.error-text-red {
  color: red;
}

/* Utility classes (carbon equivalents for stacks, columns and rows?) */
.p-10 {
  padding: 10px;
}

.p-top-10 {
  padding-top: 10px;
}

.p-bottom-10 {
  padding-bottom: 10px;
}

.p-left-10 {
  padding-left: 10px;
}

.p-right-10 {
  padding-right: 10px;
}

.m-10 {
  margin: 10px;
}

.m-top-10 {
  margin-top: 10px;
}

.m-bottom-10 {
  margin-bottom: 10px;
}

.m-left-10 {
  margin-left: 10px;
}

.m-right-10 {
  margin-right: 10px;
}

.not-editable {
  pointer-events: none;
}

.pi-show-new-tab-button {
  position: relative;
  left: 6px;
}
